using Microsoft.EntityFrameworkCore;
using ZeroSum.Domain.Entities;

namespace ZeroSum.Extend.EFCore.MySql.EntityFrameworks;

/// <summary>
///     EFCore仓储接口（提供EFCore特性）
/// </summary>
public interface IEfCoreRepository
{
    /// <summary>
    ///     获取 DbSet
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <returns></returns>
    DbSet<TEntity> Entities<TEntity>() where TEntity : class, IEntity;
}